package com.tongcao.cn.contoller;

import com.alibaba.fastjson.JSON;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author:tongcao
 * @Date:2018/8/23 17:52
 * Description:
 */
@RestController
@RequestMapping("test")
public class TestContoller {

    @RequestMapping(value = "/hello")
    public String test(HttpServletRequest reRquest) {
        System.out.println("Header" + JSON.toJSONString(reRquest.getHeaderNames()));
        System.out.println("我是TestContoller test" + JSON.toJSONString(reRquest.getParameterMap()));
        return "hello";
    }
}
